package _interface

type Server interface {
	Start()
	SendMsgToId(id uint, msg string)         //发给自己
	SendMsgToUser(user string, msg string)   //发给用户
	SendMsgToGroup(group string, msg string) //发给群聊
	NotifyFriendOnline(user string)          //通知好友上线
	NotifyFriendOffline(user string)         //通知好友下线
	OnDisconnect(id uint)                    //连接断开时的处理
	GetLogger() Logger
	GetCommunicator() Communicator
	GetBusiness() Business
	GetDb() Db
}
